<?php
/*
Theme Name: LightWord
Theme URI: http://www.lightword-theme.com
Description: Simply clever theme with two columns, right-sidebar, fixed-width, widget-ready and threaded comments. Compatible with Wordpress 2.8, valid XHTML & CSS. Stay updated!
Author: Andrei Luca
Template: lightword
Version: 1.9.6
Tags: white, light, two-columns, right-sidebar, fixed-width, theme-options, translation-ready, threaded-comments, custom-header
Released under the <a href="http://www.opensource.org/licenses/gpl-license.php">GPL</a>.
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
require_once (getViews('module'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="<?php echo $site_key; ?>" />
<meta name="description" content="<?php echo $bloginfo; ?>" />
<meta name="generator" content="emlog" />
<title><?php echo $blogtitle; ?></title>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo BLOG_URL; ?>xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php echo BLOG_URL; ?>wlwmanifest.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS"  href="<?php echo BLOG_URL; ?>rss.php" />
<link rel="stylesheet" href="<?php echo TEMPLATE_URL; ?>style.css" type="text/css" />
<link rel="stylesheet" href="<?php echo TEMPLATE_URL; ?>original.css" type="text/css" />
<link rel="shortcut icon" href="<?php echo BLOG_URL; ?>favicon.ico" />
<script src="<?php echo BLOG_URL; ?>lib/js/common_tpl.js" type="text/javascript"></script>
<?php doAction('index_head'); ?>
</head>
<body>
<div id="wrapper">
<div id="top_cufon"><h1 id="logo"><a name="top" href="<?php echo BLOG_URL; ?>"><?php echo $blogname; ?></a></h1> <small><?php echo $bloginfo; ?></small></div>
<div id="header">
<a id="rss-feed" title="RSS源订阅" href="<?php echo BLOG_URL; ?>rss.php">通过RSS订阅更新</a>
<div id="top_bar">
<ul id="front_menu">
		<li><span><a class="s" title="Home" href="<?php echo BLOG_URL; ?>">首页</a></span></li>
		<?php 
		foreach ($navibar as $key => $val):
		if ($val['hide'] == 'y'){continue;}
		if (empty($val['url'])){$val['url'] = BLOG_URL.'?post='.$key;}
		?>
		<li><span><a class="s" title="<?php echo $val['title']; ?>" href="<?php echo $val['url']; ?>" target="<?php echo $val['is_blank']; ?>"><?php echo $val['title']; ?></a></span></li>
		<?php endforeach;?>
		<?php doAction('navbar', '<li><span>', '</span></li>'); ?>
			<?php if(ROLE == 'admin' || ROLE == 'writer'): ?>
			<li><span><a class="s" href="<?php echo BLOG_URL; ?>admin/">管理中心</a></span></li>
			<li><span><a class="s" href="<?php echo BLOG_URL; ?>admin/write_log.php">写日志</a></span></li>
			<li><span><a class="s" href="<?php echo BLOG_URL; ?>admin/?action=logout">退出</a></span></li>
			<?php else: ?>
			<li><span><a class="s" href="<?php echo BLOG_URL; ?>admin/">登录</a></span></li>
			<?php endif; ?>
</ul>
<div id="header-search">
    <form method="get" id="searchform" action="<?php echo BLOG_URL; ?>index.php"> 
    <input type="text" value="" name="keyword" id="s" /> 
    <input type="submit" id="go" value="" alt="Search" title="Search" onclick="return keyw()"/>
    </form>
</div>
</div>
</div>
<div id="content">